package org.chen.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.chen.domain.entity.AvatarGroup;
import org.chen.domain.entity.VideoAvatar;

import java.util.List;

@Mapper
public interface AvatarGroupMapper extends BaseMapper<AvatarGroup> {
    /**
     * 获取所有虚拟人物ID
     */
    @Select("SELECT avatar_id FROM avatar_group")
    List<String> selectAllAvatarIds();

    /**
     * 批量插入
     */
    int batchInsert(@Param("list") List<AvatarGroup> list);

    /**
     * 批量更新
     */
    int batchUpdate(@Param("list") List<AvatarGroup> list);

}
